std::basic_ostream::tellp

From Cppreference

Jump to: navigation, search
​pos_type tellp();

Returns output position indicator of the current associated streambuf object.

Essentially calls ​rdbuf()->pubseekoff(0, std::ios_base::cur, std::ios_base::out).

Contents

Parameters

(none)

Return value

current output position indicator on success, -1 if a failure (​fail() != false) occurs.

Example

See also

seekp
sets the output position indicator
(public member function)
tellg
returns the input position indicator
(public member function of std::basic_istream)
seekg
sets the input position indicator
(public member function of std::basic_istream)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages